# -*- coding: utf-8 -*-

# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
from kxchina.spiders.orm import sessionMaker

class KxchinaPipeline(object):

    #after parse item and download image 
    def process_item(self, item, spider):
        self.session = sessionMaker()
        self.session.data_interface(item)
        return item
